﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;

namespace CommonTagTime.Business
{
    public class busBannerSlideConfig
    {
        //------------------------------------------------
        //FIELD TABLE
        //------------------------------------------------

        public const string Id = "Id";
        public const string SlideEffect = "SlideEffect";
        public const string OrderBy = "OrderBy";
        public const string OrderDirection = "OrderDirection";
        public const string CurrentPage = "CurrentPage";
        public const string PageSize = "PageSize";
        public const string TotalRecords = "TotalRecords";
        public const string Condition = "Condition";
        private daoBannerSlideConfig _objDao;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busBannerSlideConfig()
        {
            _objDao = new daoBannerSlideConfig();
        }
        public bool Delete(int _Id)
        {
            return _objDao.Delete(_Id);
        }
        public bool DeleteAll()
        {
            return _objDao.DeleteAll();
        }
        public bool Insert(string _SlideEffect)
        {
            return _objDao.Insert(_SlideEffect);
        }
        public BannerSlideConfig getById(int _Id)
        {
            return _objDao.GetById(_Id);
        }
        public BannerSlideConfigCollection GetAll()
        {
            return _objDao.GetAll();
        }
    }
}
